package com.example.testrecorder.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;
/**
 * 不会滚动的ListView
 * @author Yingyong Lao
 * 创建时间 2021/6/12 16:11
 * @version 1.0
 */
public class NoScrollListView extends ListView {
    public NoScrollListView(Context context) {
        super(context);
    }

    public NoScrollListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public NoScrollListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int i = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec,i);
    }
}
